<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="文件详情"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>文件详情<a target="<?php echo $arr['target']?>" href="<?php echo $arr['showFile']?>"><?php echo $arr['img']?></a>
<a class="add-new-h2"
	href="<?php echo Yii::app()->createUrl("adminFilePanel/show", array('id'=>$model->fileModel->id, 'rename'=>$model->fileModel->id));?>">修改文件信息</a></h2>
<div id="your-profile">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'detail-form',
)); ?>
<?php
	$message = Yii::app()->request->getParam("message");
	if(isset($message) && $message!=''){
		echo("<div id='message' class='updated'><p>".$message."。</p></div>");
	}
	?>
<h3><img alt=""
	src="<?php echo Yii::app()->request->baseUrl."/statics/images/myprofile.png"?>">
文件信息</h3>
<?php echo $form->errorSummary($model->fileModel); ?>
<?php echo $form->hiddenField($model,"action");?>
<table class="form-table">
	<tr class="form-field form-required">
		<th scope="row"><?php echo $form->labelEx($model->fileModel,'fileName'); ?>:</th>
		<td><?php echo $model->fileModel->fileNameShow();?></td>
		<td></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model->fileModel,'author'); ?>:</th>
		<td><?php echo $model->fileModel->authorShow();?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model->fileModel,'directory'); ?>:</th>
		<td><?php echo $model->fileModel->directoryDetail();?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model->fileModel,'fileSize'); ?>:</th>
		<td><?php echo $model->fileModel->fileSize;?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model->fileModel, 'createdAt'); ?>:</th>
		<td><?php echo $model->fileModel->createdAt;?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model->fileModel,'updatedAt'); ?>:</th>
		<td><?php echo $model->fileModel->updatedAt;?></td>
	</tr>
</table>
<h3><img alt=""
src="<?php echo Yii::app()->request->baseUrl."/statics/images/myprofile.png"?>">
文件历史版本</h3>
<?php $this->widget('CMiniyunGridView', array(
	'id'           => 'version-grid',
	'dataProvider' => $model,
	'model'        => new FileDetailBase(),
	'view'         => 'miniyunVersionView',
	)); ?>
<?php $this->endWidget(); ?></div>
<script
	type='text/javascript'
	src='<?php echo Yii::app()->request->baseUrl; ?>/statics/javascript/fileShow.js'></script>
